package com.sanchunhui.psc.data.protocol

import com.j256.ormlite.field.DatabaseField
import com.j256.ormlite.table.DatabaseTable

@DatabaseTable(tableName = "t_user") class UserInfo {

    @DatabaseField(id = true) var id: Int = 0 //使用指定id
    @DatabaseField(columnName = "loginId") var loginId:Int = 0 // 判断是否登录
    @DatabaseField(columnName = "token")var token:String?=null
    @DatabaseField(columnName = "company_id")var company_id: String? = null // 工作单位
    @DatabaseField(columnName = "id_card") var id_card : String? = null
    @DatabaseField(columnName = "name") var name: String? = null // 用户名
    @DatabaseField(columnName = "project_id") var project_id : String? = null // 所在项目
    @DatabaseField(columnName = "team_id") var team_id : String? = null // 所在小组
    @DatabaseField(columnName = "role")var role : Int = 0 // 角色 0.成员 1.小组长 2.项目负责人
    @DatabaseField(columnName = "profession") var profession : String? = null // 专业
    @DatabaseField(columnName = "job_id")var job_id: String? = null // 工种
    @DatabaseField(columnName = "phone")var phone: String? = null
    @DatabaseField(columnName = "login_time") var login_time:String? = null
    @DatabaseField(columnName = "modifyTime") var modifyTime:String? = null
    @DatabaseField(columnName = "permission_group_id") var permission_group_id:String? = null
    @DatabaseField(columnName = "isSelected") var isSelected : Boolean = false
}
